package com.heima.wemedia.task;

import com.alibaba.fastjson.JSON;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.wemedia.mapper.WmNewsMapper;
import com.heima.wemedia.mapper.WmSensitiveMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * 新闻任务自动审核
 */
@Service
@Slf4j
public class WmNewsTaskAudit {

    @Autowired
    private WmNewsMapper wmNewsMapper;
    @Autowired
    private WmSensitiveMapper wmSensitiveMapper;

    /**
     * 审核文章
     */
    @Scheduled(fixedRate = 1000)
    public void scanNewsByTask() {
        //查询需要发布审核的新闻
    }
}
